<?php

namespace app\service\index;

use app\db\index\D_fields;

class S_fields
{
    public $d_fields;

    public function __construct()
    {
        $this->d_fields = new D_fields();
    }

    /**
     * 所有数据
     * @param string $paramObj
     * @return array
     */
    public function allData($paramObj=""){
        return $this->d_fields->allData($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}